package com.objcat.tools;

/**
 * @author objcat
 * @version 1.0
 * @description ZYTimeUtil
 * @date 2023/11/10 12:32
 */
public class ZYTime {

    long startTime;
    long endTime;
    
    public ZYTime() {
        this.startTime = System.nanoTime();
    }

    public void stop() {
        endTime = System.nanoTime();
        double result = (endTime - startTime) / 1000000.0;
        System.out.println(result + "ms");
    }
}
